package com.atguigu.aoppreview;

import com.atguigu.aoppreview.proxy.PayProxy;

/**
 * @Author: shenhao
 * @CreatTime: 2024/11/3 14:32
 * @Version: 1.0
 * 测试各种代理情况
 */
public class ClientTest {

    private static void payNormalV1(){
        PayService payService=new PayServiceImpl();
        payService.pay();
    }
    private static void payProxyV2(){
        PayService payService=new PayProxy(new PayServiceImpl());
        payService.pay();
    }
    public static void main(String[] args) {
        //payNormalV1();
        payProxyV2();
    }
}
